//
//  UpCollectionViewCell.m
//  BeautifulShoppings
//
//  Created by GivenBmli on 16/9/5.
//  Copyright © 2016年 GivenBmli. All rights reserved.
//

#import "UpCollectionViewCell.h"
#import "UpcellModel.h"
#import "TAMacro.h"
@implementation UpCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self creatSubview:frame];
    }
    return self;
}
- (void)setUpCellmodel:(UpcellModel *)upCellmodel {
    if (_upCellmodel != upCellmodel) {
    }
    self.Name.text = upCellmodel.Name;
    self.Id.text = upCellmodel.key;
}

- (void)creatSubview:(CGRect)frame {
    self.Name = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH/4, SCREEN_WIDTH / 10)];
    self.Name.backgroundColor =[UIColor whiteColor];
    [self.contentView addSubview:self.Name];

}


@end
